package com.pk.platform.domain.charge;

import java.io.Serializable;
import java.util.Date;

import com.pk.platform.util.StringConverter;

/**
 * 交费详细
 * @author peng
 *
 */
public class TuitionDetail implements Serializable {

	private String id; //主键
	
	private Double amount; //金额
	
	private Double modifyAmount; //调整金额
	
	private String year; //费用所在年
	
	private String month; //费用所在月
	
	private Date tuitionDateStart; //费用开始日期(对应year-month)

	private Date tuitionDateEnd; //费用开始日期(对应year-month)

	private Integer sort; //排序
	
	private Integer isDel; //是否删除
	
	private String discount; //折扣
	
	private Tuition tuition; //所属的交费记录
	
	private ChargeIndex chargeIndex; //哪项指标
	
	//整数金额
	public String getIntAmount()
	{
		return StringConverter.toNBitString(amount, 0);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Double getModifyAmount() {
		return modifyAmount;
	}

	public void setModifyAmount(Double modifyAmount) {
		this.modifyAmount = modifyAmount;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public Date getTuitionDateStart() {
		return tuitionDateStart;
	}

	public void setTuitionDateStart(Date tuitionDateStart) {
		this.tuitionDateStart = tuitionDateStart;
	}

	public Date getTuitionDateEnd() {
		return tuitionDateEnd;
	}

	public void setTuitionDateEnd(Date tuitionDateEnd) {
		this.tuitionDateEnd = tuitionDateEnd;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}

	public Tuition getTuition() {
		return tuition;
	}

	public void setTuition(Tuition tuition) {
		this.tuition = tuition;
	}

	public ChargeIndex getChargeIndex() {
		return chargeIndex;
	}

	public void setChargeIndex(ChargeIndex chargeIndex) {
		this.chargeIndex = chargeIndex;
	}
	
}
